package cn.gpnu.domain;

import com.alibaba.druid.support.json.JSONUtils;

//用户的实体类
public class User {
    private int id;
    private String username;
    private String password;
    private int gold;
    private String name;
    private int now_tree;
    private int today_study_time;
    private String motto;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNow_tree() {
        return now_tree;
    }

    public void setNow_tree(int now_tree) {
        this.now_tree = now_tree;
    }

    public int getToday_study_time() {
        return today_study_time;
    }

    public void setToday_study_time(int today_study_time) {
        this.today_study_time = today_study_time;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gold=" + gold +
                ", name='" + name + '\'' +
                ", now_tree=" + now_tree +
                ", today_study_time=" + today_study_time +
                ", motto='" + motto + '\'' +
                '}';
    }
}
